<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: C:/src/Qt/SARibbon/src/SARibbonBar/SARibbonPannelItem.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('_s_a_ribbon_pannel_item_8h_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">SARibbonPannelItem.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span><span class="preprocessor">#ifndef SARIBBONPANNELITEM_H</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno">    2</span><span class="preprocessor">#define SARIBBONPANNELITEM_H</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno">    3</span><span class="preprocessor">#include &quot;SARibbonGlobal.h&quot;</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno">    4</span><span class="preprocessor">#include &lt;QWidgetItem&gt;</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno">    5</span><span class="preprocessor">#include &lt;QAction&gt;</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno">    6</span><span class="keyword">class </span><a class="code hl_class" href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a>;</div>
<div class="foldopen" id="foldopen00016" data-start="{" data-end="};">
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html">   16</a></span><span class="keyword">class </span>SA_RIBBON_EXPORT <a class="code hl_class" href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a> : <span class="keyword">public</span> QWidgetItem</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span>{</div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="keyword">public</span>:</div>
<div class="foldopen" id="foldopen00022" data-start="{" data-end="};">
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926">   22</a></span>    <span class="keyword">enum</span> <a class="code hl_enumeration" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926">RowProportion</a></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span>    {</div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c">   24</a></span>        <a class="code hl_enumvalue" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c">None</a>,  </div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a51c698e60b498f57ac2620a2560066db">   25</a></span>        <a class="code hl_enumvalue" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a51c698e60b498f57ac2620a2560066db">Large</a>,   </div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a81319357f999411ab803ba666260e7ee">   26</a></span>        <a class="code hl_enumvalue" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a81319357f999411ab803ba666260e7ee">Medium</a>,  </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span>        Small  </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a840ba607e1a1a8dec487eb575f78c450">   28</a></span>    };</div>
</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno">   29</span>    <span class="keyword">explicit</span> <a class="code hl_class" href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a>(QWidget* widget);</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span>    <a class="code hl_class" href="class_s_a_ribbon_pannel_item.html">~SARibbonPannelItem</a>();</div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span> </div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno">   32</span>    <span class="keywordtype">bool</span> isEmpty() const Q_DECL_OVERRIDE;</div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno">   33</span> </div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html#a625779a0c233f785cd322705cb1a6763">   34</a></span>    <span class="keywordtype">short</span> rowIndex;             </div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html#af7bc9bb1b566838f298ca92e2cad549a">   35</a></span>    <span class="keywordtype">int</span> columnIndex;            </div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html#ac54ed5fe77d3e36a96309fc0c6566663">   36</a></span>    QRect itemWillSetGeometry;  </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span>    QAction* action;            </div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html#a606fd91113fced39493e2c529d46657b">   38</a></span>    <span class="keywordtype">bool</span> customWidget;  </div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="class_s_a_ribbon_pannel_item.html#abd998d37d693ee6f9ccf3a4b3e38db07">   39</a></span>    <a class="code hl_class" href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a>::<a class="code hl_enumeration" href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926">RowProportion</a> rowProportion;  </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span>};</div>
</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno">   41</span><span class="preprocessor">#ifndef SA_ActionPropertyName_RowProportion</span></div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno">   42</span><span class="preprocessor">#define SA_ActionPropertyName_RowProportion &quot;_sa_RowProportion&quot;</span></div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span><span class="preprocessor">#ifndef SA_ActionPropertyName_ToolButtonPopupMode</span></div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span><span class="preprocessor">#define SA_ActionPropertyName_ToolButtonPopupMode &quot;_sa_ToolButtonPopupMode&quot;</span></div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="preprocessor">#ifndef SA_ActionPropertyName_ToolButtonStyle</span></div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno">   48</span><span class="preprocessor">#define SA_ActionPropertyName_ToolButtonStyle &quot;_sa_ToolButtonStyle&quot;</span></div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="preprocessor">#endif</span></div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno">   50</span><span class="preprocessor">#endif  </span><span class="comment">// SARIBBONPANNELITEM_H</span></div>
<div class="ttc" id="aclass_s_a_ribbon_pannel_item_html"><div class="ttname"><a href="class_s_a_ribbon_pannel_item.html">SARibbonPannelItem</a></div><div class="ttdoc">是对pannel所有子窗口的抽象，参考qt的toolbar</div><div class="ttdef"><b>Definition</b> SARibbonPannelItem.h:17</div></div>
<div class="ttc" id="aclass_s_a_ribbon_pannel_item_html_af4282b5e09c0b7ad37f1cc555a763926"><div class="ttname"><a href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926">SARibbonPannelItem::RowProportion</a></div><div class="ttdeci">RowProportion</div><div class="ttdoc">定义了行的占比，ribbon中有large，media和small三种占比</div><div class="ttdef"><b>Definition</b> SARibbonPannelItem.h:23</div></div>
<div class="ttc" id="aclass_s_a_ribbon_pannel_item_html_af4282b5e09c0b7ad37f1cc555a763926a51c698e60b498f57ac2620a2560066db"><div class="ttname"><a href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a51c698e60b498f57ac2620a2560066db">SARibbonPannelItem::Large</a></div><div class="ttdeci">@ Large</div><div class="ttdoc">大占比，一个widget的高度会充满整个pannel</div><div class="ttdef"><b>Definition</b> SARibbonPannelItem.h:25</div></div>
<div class="ttc" id="aclass_s_a_ribbon_pannel_item_html_af4282b5e09c0b7ad37f1cc555a763926a81319357f999411ab803ba666260e7ee"><div class="ttname"><a href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a81319357f999411ab803ba666260e7ee">SARibbonPannelItem::Medium</a></div><div class="ttdeci">@ Medium</div><div class="ttdoc">中占比，在SARibbonPannel::pannelLayoutMode 为 SARibbonPannel::ThreeRowMode 时才会起作用，且要同一列里两个都是Medium时，会在三行中占据...</div><div class="ttdef"><b>Definition</b> SARibbonPannelItem.h:26</div></div>
<div class="ttc" id="aclass_s_a_ribbon_pannel_item_html_af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c"><div class="ttname"><a href="class_s_a_ribbon_pannel_item.html#af4282b5e09c0b7ad37f1cc555a763926a945a30a994e0ae67c403424d018cf36c">SARibbonPannelItem::None</a></div><div class="ttdeci">@ None</div><div class="ttdoc">为定义占比，这时候将会依据expandingDirections来判断，如果能有Qt::Vertical，就等同于Large，否则就是Small</div><div class="ttdef"><b>Definition</b> SARibbonPannelItem.h:24</div></div>
<div class="ttc" id="aclass_s_a_ribbon_tool_button_html"><div class="ttname"><a href="class_s_a_ribbon_tool_button.html">SARibbonToolButton</a></div><div class="ttdoc">Ribbon界面适用的toolButton</div><div class="ttdef"><b>Definition</b> SARibbonToolButton.h:14</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_e2d4cc23cf2ba44ad8b50ed52b6a09e1.html">SARibbonBar</a></li><li class="navelem"><b>SARibbonPannelItem.h</b></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
